﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MPFerrell.Ftf
{
    class FillableTemplate: TemplateDef
    {
        private bool _HasDef = false;

        public FillableTemplate()
        {
        }

        public FillableTemplate(TemplateDef DefIn)
        {
            _Name = DefIn.Name;
            _Desc = DefIn.Desc;
            _UnfilledText = DefIn.UnfilledText;
            for (int ParamIndex = 0; ParamIndex < DefIn.Parameters.Count; ParamIndex++)
            {
                FillableFtfParam NewParam = new FillableFtfParam(
                        DefIn.Parameters[ParamIndex]);
                _Parameters.Add(NewParam);
            }
            _HasDef = true;
        }

        public bool HasDef
        { 
            get
            {
                return _HasDef;
            }
        }
    }
}
